<!DOCTYPE html>
<html lang="en">
<head>
[#include "/customer/include/static.htm"]
    <link href="${path}/resources/css/user.css" rel="stylesheet" type="text/css"/>
    <link href="${path}/resources/css/member/pay.css" rel="stylesheet" type="text/css"/>
    <link href="${path}/resources/plug/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <script src="${path}/resources/plug/layui/layui.js" type="text/javascript"></script>
</head>
<body>
<style>


</style>
<div id="info_check" style="display:none;">
    <div class="windows_div_bgg"></div>
    <div class="pop_divg" style="height:200px">
        <div class="close1"><a id="close_win" onclick="$(&quot;#info_check&quot;).css(&quot;display&quot;,&quot;none&quot;);" title="关闭窗口" style="cursor:pointer;"></a></div>
        <div class="pop_box">
            <div class="pop_box_title">
                <h1>充值遇到问题？</h1>
            </div>
            <div class="pop_box_nr t10"> <span class="t20"><img src="/resources/images/email_verify_bg.gif" border="0" align="absmiddle"> 充值完成前请不要关闭此窗口。完成充值后请根据你的情况下点击下面的按钮:</span>
                <p>请在新开网上充值页面完成付款后再选择</p>
            </div>
            <div class="cz_push t20"> <a href="/member/account/rechargecash?type=recharge">已完成充值</a>  </div>
            <div class="cle"></div>
            <div class="cz_return"> <a href="/member/account/go_recharge_online" style="color: #3366CC;">返回重新选择充值方式</a></div>
        </div>
    </div>
</div>

<!--头部-->
[#include "/customer/include/header.ftl"]
<div class="member">
    <!--左边-->
[#include "/customer/include/member_left_menu.ftl"]
    <!--左边 end-->
    <div class="memberRight">
        <div class="member_tab">
            <div class="member_tab">
                <a href="/member/account/log">资金明细</a>
                <a   href="/member/account/edit">银行账户</a>
               [#--<a  href="/member/account/go_recharge_offline">线下充值</a>--]
                <a  class="on" href="/member/account/go_recharge_online">线上充值</a>
                <a href="/member/account/recharges">充值记录</a>
                <a href="/member/account/gocash">用户提现</a>
                <a href="/member/account/withdrawals">提现记录</a>

            </div>
        </div>
        <div class="member_tab_info">
            <!--账户充值 start-->
            <form class="layui-form" name="form1" method="post" action="${path}/member/account/onlinesubmit"
                  target="_blank">
                <table class="layui-table " >
                    <tbody>

                    <tr >
                        <td>支付渠道：</td>
                        <td>
                            <select  lay-filter="payid" id="payid" name="payid" lay-verify="required" class="layui-input">
                            [#list list as pay]
                                <option value='${pay.id}'>${pay.name}</option>
                            [/#list]

                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>可用余额：</td>
                        <td>
                        ${account.balance}
                        </td>
                    </tr>
                    <tr>
                        <td>充值金额：</td>
                        <td>
                            <input class="layui-input" type="text"
                                   name="money" id="money" maxlength="20" required="required">
                        </td>
                    </tr>
                    <div class="bank_select_div" id="bankselect" >
                        <dl>
                        [#list banks as bank]
                            <dd style="border: 1px solid #e2e2e2;">
                                <input type="radio" [#if bank.bank_code='0801020000']checked[/#if] value="${bank.bank_code }"  name="bankcode"  title="${bank.bank_name }"/>
                                <img src="/resources${bank.bank_img }"/>

                            </dd>
                        [/#list]
                        </dl>
                    </div>
                    <tr>
                        <td></td>
                        <td>
                            <button  style="background-color: #F3485A;" lay-submit lay-filter="MainForm" class="layui-btn">确定</button>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <!--账户充值 end--></form></div>
    </div>
</div>
<style>
    .bank_select_div {


        min-height: 160px;
        padding: 25px;
    }
    .bank_select_div dd{


      float: left;
    }

    .bank_select_div dd {
        width: 142px;
        float: left;
        height: 95px;
    }


</style>
[#include "/customer/include/footer.ftl"]
<script>
 
    layui.use(['form', 'layer'], function () {
        var form = layui.form(), layer = layui.layer, $ = layui.jquery;
        form.on('submit(MainForm)', function (data) {
            $("#info_check").css('display','block');
        });
        form.on('select(payid)', function(data){
            if($('#payid').val()=='54'){
                $('#bankselect').show();
            }else{
                $('#bankselect').hide();
            }
            aler($('#payid').val())

        });
    });
    $(function(){



    })
</script>

<style>
    .bank_select_div {

        min-height: 160px;
        padding: 25px;
    }
    .bank_select_div dd p {
        text-align: center;
    }
    .bank_select_div dd img {
        width: 100px;
        height: 30px;
        margin: 0px 3px;
    }
    .bank_select_div dd {


        width: 142px;
        float: left;
        height: 95px;
    }


</style>

<script>

</script>
</body>
</html>